package com.bangdream.michelia.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.JSON;

/**
 * @date on 2018/8/6 22:31
 * @email 909732184@qq.com
 * 讲师实体类
 */
public class TeacherBean implements Parcelable{

    /**
     * age : 0
     * content : string
     * createBy : string
     * createName : 测试内容pk31
     * createTime : 2018-06-06 10:29:32
     * delFlag : 0
     * education : string
     * faceUrl : string
     * id : 25
     * master : string
     * mobile : string
     * name : WORD
     * orgId : 测试内容9h1e
     * sex : c
     * title : string
     * updateBy : string
     * updateTime : 2018-06-06 10:29:32
     */

    private int age;
    private String content;
    private String createBy;
    private String createName;
    private String createTime;
    private String delFlag;
    private String education;
    private String faceUrl;
    private String id;
    private String master;
    private String mobile;
    private String name;
    private String orgId;
    private String sex;
    private String title;
    private String updateBy;
    private String updateTime;
    private int courseCount;

    protected TeacherBean(Parcel in) {
        age = in.readInt();
        content = in.readString();
        createBy = in.readString();
        createName = in.readString();
        createTime = in.readString();
        delFlag = in.readString();
        education = in.readString();
        faceUrl = in.readString();
        id = in.readString();
        master = in.readString();
        mobile = in.readString();
        name = in.readString();
        orgId = in.readString();
        sex = in.readString();
        title = in.readString();
        updateBy = in.readString();
        updateTime = in.readString();
        courseCount = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(age);
        dest.writeString(content);
        dest.writeString(createBy);
        dest.writeString(createName);
        dest.writeString(createTime);
        dest.writeString(delFlag);
        dest.writeString(education);
        dest.writeString(faceUrl);
        dest.writeString(id);
        dest.writeString(master);
        dest.writeString(mobile);
        dest.writeString(name);
        dest.writeString(orgId);
        dest.writeString(sex);
        dest.writeString(title);
        dest.writeString(updateBy);
        dest.writeString(updateTime);
        dest.writeInt(courseCount);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<TeacherBean> CREATOR = new Creator<TeacherBean>() {
        @Override
        public TeacherBean createFromParcel(Parcel in) {
            return new TeacherBean(in);
        }

        @Override
        public TeacherBean[] newArray(int size) {
            return new TeacherBean[size];
        }
    };

    public int getCourseCount() {
        return courseCount;
    }

    public void setCourseCount(int courseCount) {
        this.courseCount = courseCount;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }


    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getFaceUrl() {
        return faceUrl;
    }

    public void setFaceUrl(String faceUrl) {
        this.faceUrl = faceUrl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

}
